<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018\9\18 0018
 * Time: 14:43
 */

namespace app\Lib\InterfaceIn\Common;


interface TransactionCommonHandle
{
    /**
     * 业务执行前
     * @return bool
     */
    public function ____before();

    /**
     * 业务执行时
     * @return bool
     */
    public function __run();

    /**
     * 业务提交前
     * @return bool
     */
    public function __beforeCommit();

    /**
     * 业务提成功执行
     * @return bool
     */
    public function __successAfter();

    /**
     * 业务提交后执行不管成功或者失败
     * @return bool
     */
    public function __after();

    /**
     * 失败后执行
     * @return bool
     */
    public function __failureAfter();

}